package com.guodu.dao;

import java.util.List;

import com.guodu.entity.Filenotice;
import com.guodu.entity.Noticemanager;
import com.guodu.entity.NoticemanagerUnits;
import com.guodu.entity.Units;
import com.guodu.vo.NoticemanagerQueryVo;

public interface NoticemanagerDao {

	long findSizeByVo(NoticemanagerQueryVo nqv, Units units,String fUnitName);

	List<Noticemanager> findByVo(NoticemanagerQueryVo nqv,
			Units units, int curPage, int pageSize,String fUnitName);

	String save(Noticemanager noticemanager);

	Noticemanager findById(String purchaseId);
	
	void updateNotice(Units units,String purchaseId);
	
	void saveNoticeUnits(List<NoticemanagerUnits> nus);
	
	void saveFile(Filenotice filenotice);

	void delZi(String noticeFile);

	void delByIds(String[] delIds);

	List<Filenotice> findFile(String purchaseId);
	
	Noticemanager findByUnits(String unitsId);

}
